package cn.com.cfae.iras.doc.analyze.parse.model;

import cn.com.cfae.iras.doc.analyze.keys.UnitType;
import cn.com.cfae.iras.doc.analyze.parse.kv.KVText;

import java.util.ArrayList;
import java.util.List;

public class ExtractItem {


    public ExtractItem() {
//        setValues(new ArrayList<>());
    }

    public ExtractBizModel getExtractBizModel() {
        return extractBizModel;
    }

    public void setExtractBizModel(ExtractBizModel extractBizModel) {
        this.extractBizModel = extractBizModel;
    }

    private ExtractBizModel extractBizModel;


    private String itemValue;

    public String getItemValue() {
        return itemValue;
    }

    public void setItemValue(String itemValue) {
        this.itemValue = itemValue;
    }

    /**
     * 指标名称
     */
    private String itemName;

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }


    public String[] getSynonyms() {
        return synonyms;
    }

    public void setSynonyms(String[] synonyms) {
        this.synonyms = synonyms;
    }


    /**
     * 同义词
     */
    String[] synonyms;

    public KVText getKey() {
        return key;
    }

    public void setKey(KVText key) {
        this.key = key;
    }

    public KVText getValue() {
        return value;
    }

    public void setValue(KVText value) {
        this.value = value;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    private KVText key;

    private KVText value;

    public List<KVText> getValues() {
        return values;
    }

    public void setValues(List<KVText> values) {
        this.values = values;
    }

    private List<KVText> values;

    private String unit;

    public void addValue(KVText vText) {
        if (values == null) {
            values = new ArrayList<>();
        }
        values.add(vText);
    }
}
